<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品列表-正品低价、品质保障、配送及时、轻松购物！</title>
    <!-- 网站说明 -->
    <meta name="description"
          content="京东JD.COM-专业的综合网上购物商城，为您提供正品低价的购物选择、优质便捷的服务体验。商品来自全球数十万品牌商家，囊括家电、手机、电脑、服装、居家、母婴、美妆、个护、食品、生鲜等丰富品类，满足各种购物需求。" />
    <!-- 关键字 -->
    <meta name="Keywords" content="网上购物,网上商城,家电,手机,电脑,服装,居家,母婴,美妆,个护,食品,生鲜,京东" />
    <!-- 引入favicon图标 -->
    <link rel="shortcut icon" href="favicon.ico" />
    <!-- 初始化样式 -->
    <link rel="stylesheet" href="css/base.css">
    <!-- 公共样式 -->
    <link rel="stylesheet" href="css/common.css">
    <!-- 列表页专有样式 -->
    <link rel="stylesheet" href="css/list.css">
</head>

<body>
<!-- 快捷导航模块 -->
<section class="shortcut" id="shortcutApp">
    <div class="w">
        <div class="fl">
            <ul>
                <li>青稞商城欢迎您！&nbsp;</li>
                <li v-if="!isLogin">
                    <a href="login.html">请登录</a>&nbsp;&nbsp;<a href="register.html" class="style_red">免费注册</a>
                </li>
                <li v-else>
                    <a href="javascript:;">{{userInfo.username}}</a>&nbsp;&nbsp;
                    <a href="javascript:;" @click="logout">退出登录</a>
                </li>
            </ul>
        </div>
        <div class="fr">
            <ul>
                <li><a href="index.html">首页</a></li>
                <li></li>
                <li><a href="cart.html">我的购物车</a></li>
                <li></li>
                <li><a href="user.html">我的青稞</a></li>
                <li></li>
                <li><a href="#">企业采购</a></li>
                <li></li>
                <li><a href="#">关注青稞</a></li>
                <li></li>
                <li><a href="#">客户服务</a></li>
                <li></li>
                <li><a href="#">网站导航</a></li>
            </ul>
        </div>
    </div>
</section>
<!-- header 头部模块 -->
<header class="header w">
    <!-- logo 模块 -->
    <div class="logo">
        <h1>
            <a href="index.html" title="青稞商城">青稞商城</a>
        </h1>
    </div>
    <!-- 秒杀模块 -->
    <div class="sk">
        <img src="images/sk.png" alt="">
    </div>
    <!-- 搜索模块（与index.html完全一致） -->
    <div class="yui3-u Center searchArea">
        <div class="search" style="font-weight:bold">
            <div action='' class='sui-form form-inline'>
                <div class='input-append'>
                    <input style="font-weight:bold" type='text' id='autocomplete' v-model='key'
                           @keyup="handleKey($event)" autocomplete="off" class='input-error input-large'
                           @focus="showOption=true&&options.length>0"/>
                    <button @click='search' class='sui-btn btn-xlarge btn-danger' type='button'>搜索</button>
                </div>
            </div>
        </div>
        <!-- 热词模块（与index.html完全一致） -->
        <div class="hotwords">
            <a href="#" class="style_red">青稞首发</a>
            <a href="#">亿元优惠</a>
            <a href="#">9.9元团购</a>
            <a href="#">美满99减30</a>
            <a href="#">办公用品</a>
            <a href="#">电脑</a>
            <a href="#">通信</a>
        </div>
    </div>

</header>
<!-- nav 导航模块 -->
<nav class="nav">
    <div class="w">
        <div class="sk_list">
            <ul>
                <li><a href="#">品优秒杀</a></li>
                <li><a href="#">即将告罄</a></li>
                <li><a href="#">超值低价</a></li>
            </ul>
        </div>
        <div class="sk_con">
            <ul>
                <li><a href="#">女装</a></li>
                <li><a href="#" class="style_red">耳机</a></li>
                <li><a href="#">男装</a></li>
                <li><a href="#">男鞋</a></li>
                <li><a href="#">母婴童装</a></li>
                <li><a href="#">食品</a></li>
                <li><a href="#">智能数码</a></li>
                <li><a href="#">运动户外</a></li>
                <li><a href="#">更多分类</a></li>
            </ul>
        </div>
    </div>
</nav>
<!-- main 主体模块 -->
<div class="w sk_container">
    <div class="sk_hd">
        <img src="upload/bg_03.png" alt="">
    </div>
    <div class="sk_bd">
        <ul class="clearfix">
            <li>
                <div class="product">
                        <a href="#" class="pic"><img src="img/like_03.png" alt=""/></a>
                        捷波朗
                        <p>（jabra）BOOSI劲步</p>
                    </a>
                </div>
                <div class="pro_intr">
                        <span class="ht">
                            232天历史最低价
                            <span class="sj"></span>
                        </span>
                    <i class="price">
                        <em>￥</em>24.8
                        <span class="price_past">￥39.8</span>
                    </i>
                    <span class="progress">
                            <i>已售34%</i>
                            <i class="inner">
                                <b class="compeleted"></b>
                            </i>
                        </span>
                    <a href="search.html">立即抢购</a>
                </div>
            </li>
            <li>
                <div class="product">
                        <a href="#" class="pic"><img src="img/like_03.png" alt=""/></a>
                        捷波朗
                        <p>（jabra）BOOSI劲步</p>
                    </a>
                </div>
                <div class="pro_intr">
                        <span class="ht">
                            232天历史最低价
                            <span class="sj"></span>
                        </span>
                    <i class="price">
                        <em>￥</em>24.8
                        <span class="price_past">￥39.8</span>
                    </i>
                    <span class="progress">
                            <i>已售34%</i>
                            <i class="inner">
                                <b class="compeleted"></b>
                            </i>
                        </span>
                    <a href="search.html">立即抢购</a>
                </div>
            </li>
            <li>
                <div class="product">
                        <a href="#" class="pic"><img src="img/like_03.png" alt=""/></a>
                        捷波朗
                        <p>（jabra）BOOSI劲步</p>
                    </a>
                </div>
                <div class="pro_intr">
                        <span class="ht">
                            232天历史最低价
                            <span class="sj"></span>
                        </span>
                    <i class="price">
                        <em>￥</em>24.8
                        <span class="price_past">￥39.8</span>
                    </i>
                    <span class="progress">
                            <i>已售34%</i>
                            <i class="inner">
                                <b class="compeleted"></b>
                            </i>
                        </span>
                    <a href="search.html">立即抢购</a>
                </div>
            </li>
            <li>
                <div class="product">
                        <a href="#" class="pic"><img src="img/like_03.png" alt=""/></a>
                        捷波朗
                        <p>（jabra）BOOSI劲步</p>
                    </a>
                </div>
                <div class="pro_intr">
                        <span class="ht">
                            232天历史最低价
                            <span class="sj"></span>
                        </span>
                    <i class="price">
                        <em>￥</em>24.8
                        <span class="price_past">￥39.8</span>
                    </i>
                    <span class="progress">
                            <i>已售34%</i>
                            <i class="inner">
                                <b class="compeleted"></b>
                            </i>
                        </span>
                    <a href="search.html">立即抢购</a>
                </div>
            </li>
            <li>
                <div class="product">
                        <a href="#" class="pic"><img src="img/like_03.png" alt=""/></a>
                        捷波朗
                        <p>（jabra）BOOSI劲步</p>
                    </a>
                </div>
                <div class="pro_intr">
                        <span class="ht">
                            232天历史最低价
                            <span class="sj"></span>
                        </span>
                    <i class="price">
                        <em>￥</em>24.8
                        <span class="price_past">￥39.8</span>
                    </i>
                    <span class="progress">
                            <i>已售34%</i>
                            <i class="inner">
                                <b class="compeleted"></b>
                            </i>
                        </span>
                    <a href="search.html">立即抢购</a>
                </div>
            </li>
            <li>
                <div class="product">
                        <a href="#" class="pic"><img src="img/like_03.png" alt=""/></a>
                        捷波朗
                        <p>（jabra）BOOSI劲步</p>
                    </a>
                </div>
                <div class="pro_intr">
                        <span class="ht">
                            232天历史最低价
                            <span class="sj"></span>
                        </span>
                    <i class="price">
                        <em>￥</em>24.8
                        <span class="price_past">￥39.8</span>
                    </i>
                    <span class="progress">
                            <i>已售34%</i>
                            <i class="inner">
                                <b class="compeleted"></b>
                            </i>
                        </span>
                    <a href="search.html">立即抢购</a>
                </div>
            </li>
            <li>
                <div class="product">
                        <a href="#" class="pic"><img src="img/like_03.png" alt=""/></a>
                        捷波朗
                        <p>（jabra）BOOSI劲步</p>
                    </a>
                </div>
                <div class="pro_intr">
                        <span class="ht">
                            232天历史最低价
                            <span class="sj"></span>
                        </span>
                    <i class="price">
                        <em>￥</em>24.8
                        <span class="price_past">￥39.8</span>
                    </i>
                    <span class="progress">
                            <i>已售34%</i>
                            <i class="inner">
                                <b class="compeleted"></b>
                            </i>
                        </span>
                    <a href="search.html">立即抢购</a>
                </div>
            </li>
            <li>
                <div class="product">
                        <a href="#" class="pic"><img src="img/like_03.png" alt=""/></a>
                        捷波朗
                        <p>（jabra）BOOSI劲步</p>
                    </a>
                </div>
                <div class="pro_intr">
                        <span class="ht">
                            232天历史最低价
                            <span class="sj"></span>
                        </span>
                    <i class="price">
                        <em>￥</em>24.8
                        <span class="price_past">￥39.8</span>
                    </i>
                    <span class="progress">
                            <i>已售34%</i>
                            <i class="inner">
                                <b class="compeleted"></b>
                            </i>
                        </span>
                    <a href="search.html">立即抢购</a>
                </div>
            </li>
        </ul>
    </div>
</div>
<!-- footer 底部模块 -->
<footer class="footer">
    <div class="w">
        <div class="mod_service">
            <ul>
                <li>
                    <h5 class="h5_1"></h5>
                    <div class="service_txt">
                        <h4>正品保障</h4>
                        <p>正品保障，提供发票</p>
                    </div>
                </li>
                <li>
                    <h5 class="h5_2"></h5>
                    <div class="service_txt">
                        <h4>急速物流</h4>
                        <p>急速物流，急速送达</p>
                    </div>
                </li>
                <li>
                    <h5 class="h5_3"></h5>
                    <div class="service_txt">
                        <h4>无忧售后</h4>
                        <p>7天无理由退换货</p>
                    </div>
                </li>
                <li>
                    <h5 class="h5_4"></h5>
                    <div class="service_txt">
                        <h4>特色服务</h4>
                        <p>私人定制家电套餐</p>
                    </div>
                </li>
                <li>
                    <h5 class="h5_5"></h5>
                    <div class="service_txt">
                        <h4>帮助中心</h4>
                        <p>您的购物指南</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="mod_help">
            <dl>
                <dt>服务指南</dt>
                <dd><a href="#">购物流程</a></dd>
                <dd><a href="#">会员介绍</a></dd>
                <dd><a href="#">生活旅行/团购</a></dd>
                <dd><a href="#">常见问题</a></dd>
                <dd><a href="#">大家电</a></dd>
                <dd><a href="#">联系客服</a></dd>
            </dl>
            <dl>
                <dt>配送方式</dt>
                <dd><a href="#">上门自提</a></dd>
                <dd><a href="#">211限时达</a></dd>
                <dd><a href="#">配送服务查询</a></dd>
                <dd><a href="#">配送费收取标准</a></dd>
                <dd><a href="#">海外配送</a></dd>
            </dl>
            <dl>
                <dt>支付方式</dt>
                <dd><a href="#">货到付款</a></dd>
                <dd><a href="#">在线支付</a></dd>
                <dd><a href="#">分期付款</a></dd>
                <dd><a href="#">邮局汇款</a></dd>
                <dd><a href="#">公司转账</a></dd>
            </dl>

            <dl>
                <dt>售后服务</dt>
                <dd><a href="#">售后政策</a></dd>
                <dd><a href="#">价格保护</a></dd>
                <dd><a href="#">退款说明</a></dd>
                <dd><a href="#">返修/退换货</a></dd>
                <dd><a href="#">取消订单</a></dd>
            </dl>
            <dl>
                <dt>特色服务</dt>
                <dd><a href="#">夺宝岛</a></dd>
                <dd><a href="#">DIY装机</a></dd>
                <dd><a href="#">延保服务</a></dd>
                <dd><a href="#">品优购E卡</a></dd>
                <dd><a href="#">品优购通信</a></dd>
            </dl>
            <dl>
                <dt>帮助中心</dt>
                <dd>
                    <img src="images/QR.png" alt="">
                    品优购客户端
                </dd>
            </dl>
        </div>
        <div class="mod_copyright">
            <div class="links">
                <a href="#">关于我们</a> |
                <a href="#">联系我们</a> |
                <a href="#">联系客服</a> |
                <a href="#">商家入驻</a> |
                <a href="#">营销中心</a> |
                <a href="#">手机品优购</a> |
                <a href="#">友情链接</a> |
                <a href="#">销售联盟</a> |
                <a href="#">品优购社区</a> |
                <a href="#">品优购公益</a> |
                <a href="#">English Site</a> |
                <a href="#">Contact U</a>
            </div>
            <div class="copyright">
                地址：北京市昌平区建材城西路金燕龙办公楼一层 邮编：100096 电话：400-618-4000 传真：010-82935100 邮箱: zhanghj+itcast.cn <br>
                京ICP备08001421号京公网安备110108007702
            </div>
        </div>
    </div>
</footer>

<script src="js/vue.js"></script>
<script src="js/axios.min.js"></script>
<script src="js/common.js"></script>
<script>
    var shortcutVm = new Vue({
        el: "#shortcutApp",
        data: {
            isLogin: false,
            userInfo: {},
            key: '',
            options: [],
            showOption: false
        },
        created() {
            this.checkLoginStatus();
        },
        methods: {
            checkLoginStatus() {
                const token = sessionStorage.getItem("token");
                if (token) {
                    this.isLogin = true;
                    this.userInfo = util.store.get("user-info") || {};
                } else {
                    this.isLogin = false;
                }
            },
            logout() {
                sessionStorage.removeItem("token");
                util.store.remove("user-info");
                window.location.reload();
            },
            handleKey(e) {
                if (e.keyCode === 13) {
                    this.search();
                }
            },
            search() {
                if (this.key) {
                    window.location.href = `/search.html?key=${encodeURIComponent(this.key)}`;
                }
            }
        }
    });
</script>
</body>
</html>
